package com.tanger.es.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @Description 查询VO类
 * @Author Hchenbin
 * @Date 2024/1/5 16:15
 * @Version 1.0
 */
@Data
@Api(value = "QueryVO", tags= "查询VO类")
public class QueryVO implements Serializable {

	@ApiModelProperty(value = "页码", required = true, example = "0")
	private long pageNum;
	@ApiModelProperty(value = "每页大小", required = true, example = "20")
	private long pageSize;
	@ApiModelProperty(value = "首字母搜索")
	private String pinyinInitials;
	@ApiModelProperty(value = "关键字")
	private String key;
	@ApiModelProperty(value = "允许商品名称为空(默认名称不为空)")
	private Boolean allowNameEmpty;
	@ApiModelProperty(value = "店铺ID")
	private Long shopId;
	@ApiModelProperty(value = "区域编码")
	private String areaCode;
	@ApiModelProperty(value = "排序方式集合")
    private List<SortVO> sorts;
	@ApiModelProperty(value = "商品分类ID集合")
	private List<Long> typeIds;
    @ApiModelProperty("品牌类型ID集合")
    private List<String> brandIds;
	@ApiModelProperty("排序：PINYIN_INITIALS(拼音首字母排序),EVALUATE_SCORE(评分排序)")
	private String sort;
    @ApiModelProperty("推荐类型排序需传：推荐类型")
    private String recommendType;

	@ApiModelProperty("关键字配置的字段及字段权重")
	private Map<String, Float> boostMap;
}
